package com.filldream.fastboot.base.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.filldream.fastboot.base.entity.Menu;
import com.filldream.fastboot.base.entity.RoleMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 角色菜单权限对应 Mapper 接口
 * </p>
 *
 * @author RickSun
 * @since 2020-05-09
 */
public interface RoleMenuMapper extends BaseMapper<RoleMenu> {

    boolean batchInsert(List<RoleMenu> newRoleMenuList);

    List<Menu> getMenuListByRoleId(@Param("roleId") Long roleId);

}
